<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    // const arr = [
    //   {
    //     name: '小米',
    //     price: 1999
    //   },
    //   {
    //     name: '华为',
    //     price: 3999
    //   },
    // ]
    // arr.find(item => {
    //   if (item.name === '小米') {
    //     console.log(item);
    //   }
    // })
    const arr1 = [10, 20, 30]
    const re = arr1.every(item => item >= 10)
    console.log(re);
  </script>
</body>

</html>